import App from "../App";
import City from "../pages/city";
import Cxfw from "../pages/cxfw";
import Home from "../pages/home";
import My from "../pages/my";
import Order from "../pages/order";
import Tlhy from "../pages/tlhy";
import {createBrowserRouter} from 'react-router-dom'


export const router = createBrowserRouter([
  {
    path: "/",
    element: <App></App>,
    children:[
        {
            index:true,
            element:<Home></Home>
        },
        {
            path:"home",
            element:<Home></Home>
        },
        {
            path:"cxfw",
            element:<Cxfw></Cxfw>
        },
        {
            path:"order",
            element:<Order></Order>
        },
        {
            path:"tlhy",
            element:<Tlhy></Tlhy>
        },

         {
            path:"my",
            element:<My></My>
        },
    ]
  },
  {
    path:"/city",
    element:<City></City>
  }
]);